package com.four.seckill.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.four.seckill.entity.Allocation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.four.seckill.vo.Allocation2Vo;
import com.four.seckill.vo.AllocationVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-12-19
 */
public interface AllocationMapper extends BaseMapper<Allocation> {

    /**
     * 分页模糊
     * @param allocationPage
     * @param vo
     * @return
     */
    IPage<Allocation> findAll(Page<Allocation> allocationPage, @Param("vo") AllocationVo vo);

    /**
     * 删除
     * @param id
     */
    void deleteByIds(Integer id);

    /**
     * 添加
     * @param vo
     */
    void addAll(@Param("vo") Allocation2Vo vo);

    /**
     * 修改
     * @param vo
     */
    void updateAllocation(Allocation2Vo vo);
}
